package com.ljf.task.web;

import com.ljf.common.result.ResultModel;
import com.ljf.common.utils.EnumUtil;
import com.ljf.task.enums.TaskDatTaskDetailDetailStatusEnum;
import com.ljf.task.enums.TaskDatTaskTabulationTaskStatusEnum;
import com.ljf.task.enums.TaskDatTaskTabulationTaskTypeEnum;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 任务模块 枚举类 控制器
 *
 * @author LJF
 * @since 2025-07-20
 */
@RestController
@RequestMapping("/enum/task")
@Api(value = "任务模块枚举类接口", tags = "任务模块枚举类接口")
public class TaskEnumController {

    @GetMapping("/task_tabulation/task_status")
    @ApiOperation(value = "查询任务列表任务状态枚举")
    public ResultModel getTaskTabulationTaskStatus() {
        return EnumUtil.getEnumVoResult(TaskDatTaskTabulationTaskStatusEnum.values());
    }

    @GetMapping("/task_tabulation/task_type")
    @ApiOperation(value = "查询任务列表任务类型枚举")
    public ResultModel getTaskTabulationTaskType() {
        return EnumUtil.getEnumVoResult(TaskDatTaskTabulationTaskTypeEnum.values());
    }

    @GetMapping("/task_detail/detail_status")
    @ApiOperation(value = "查询任务明细明细状态枚举")
    public ResultModel getTaskDetailDetailStatus() {
        return EnumUtil.getEnumVoResult(TaskDatTaskDetailDetailStatusEnum.values());
    }

}